package com.erp.gather.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.erp.gather.mapper.ErpCollectProductCategoryMapper;
import com.erp.gather.service.IErpAutoPublishProductProjectDataProcessService;
import com.ruoyi.common.core.annotation.RepeatSubmit;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldController.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;
import com.ruoyi.common.core.utils.oldUtils.StringUtils;

import com.ruoyi.gather.api.domain.dto.AutoQueryInfoDto;
import com.ruoyi.gather.api.domain.dto.AutoQueryPriceTemplateInfoDto;
import com.ruoyi.shop.api.domain.ErpSellerStoreEmpower;
import com.ruoyi.shop.api.domain.ErpSellerStorePriceTemplate;
import com.ruoyi.shop.api.domain.ErpSellerStorePromotionActivity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

/**
 * auto项目获取信息
 */
@RestController
@RequestMapping("/gather/autoQueryInfo")
public class ErpAutoPublishProductProjectDataProcessController {

    @Resource
    IErpAutoPublishProductProjectDataProcessService erpAutoPublishProductProjectService;

    @PostMapping("/queryStoreProductNumberNew")
    public R<Object> queryStoreProductNumberNew(@RequestBody AutoQueryInfoDto dto) {
        return erpAutoPublishProductProjectService.queryStoreProductNumberNew(dto);
    }

    @PostMapping("/queryAutoStoreProductListNew")
    public R<Object> queryAutoStoreProductListNew(@RequestBody AutoQueryInfoDto dto) {
        return erpAutoPublishProductProjectService.queryAutoStoreProductListNew(dto);
    }

    @PostMapping("/queryAutoStoreProductListByUnshelf")
    public R<Object> queryAutoStoreProductListByUnshelf(@RequestBody AutoQueryInfoDto dto) {
        return erpAutoPublishProductProjectService.queryAutoStoreProductListByUnshelf(dto);
    }


}
